package com.hcr.entity;

public class User {

    private Long id;

    private String phone;  // 手机号

    private String password; // 密码

    private String idNumber;  // 身份证号码

    private String name; // 姓名

    private String birthday;  // 生日

    private String address;  // 地址

    private String sex; // 性别

    private String photo;  // 头像base64

    private int status; // 是否认证过


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public User(Long id, String phone, String password, String idNumber, String name, String birthday, String address, String sex, String photo, int status) {
        this.id = id;
        this.phone = phone;
        this.password = password;
        this.idNumber = idNumber;
        this.name = name;
        this.birthday = birthday;
        this.address = address;
        this.sex = sex;
        this.photo = photo;
        this.status = status;
    }

    public User() {
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", phone='" + phone + '\'' +
                ", password='" + password + '\'' +
                ", idNumber='" + idNumber + '\'' +
                ", name='" + name + '\'' +
                ", birthday='" + birthday + '\'' +
                ", address='" + address + '\'' +
                ", sex='" + sex + '\'' +
                ", photo='" + photo + '\'' +
                ", status=" + status +
                '}';
    }
}
